package com.tproceder.mapper;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.StatementType;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/30  13:34
 * 描述:
 */
@Mapper
@Repository
public interface TestMapper2 {

    @Update("call testUpdate(#{ids},#{goodsName})")
    public int updateGoods1(Map<String,Object> map);

    @Select("call testmoreData()")
    @Options(statementType = StatementType.CALLABLE)
    @ResultMap({"goods1","user1"})
    public List<List<Map<String,Object>>> getMoreDate2();

}
